package com.my.biz.domain;

import java.io.Serializable;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
 import java.lang.Integer;
 import java.lang.Long;
 import java.lang.String;
 import java.util.Date;
 /**
 * 
 * @描述： 实体Bean
 * 
 * @创建人： ch
 * 
 * @创建时间：2017年07月04日 21:10:39
 * 
 */
public class TokenDO implements Serializable {
	
	private static final long serialVersionUID = -5867083521393806564L;
	
    /**
     *用户编号
     */
	private String uid;
	
    /**
     *token
     */
	private String token;
	
    /**
     *过期时间
     */
	private Long expireTime;
	
    /**
     *时间
     */
	private Date time;
	
    /**
     *
     */
	private Integer id;
	
	
	


	public TokenDO() {
		super();
	}
	
	

	public TokenDO(String uid) {
		super();
		this.uid = uid;
	}
	
	

	

	public TokenDO(String token, Long expireTime) {
		super();
		this.token = token;
		this.expireTime = expireTime;
	}
	
	
	

	public TokenDO(String uid, String token, Long expireTime) {
		super();
		this.uid = uid;
		this.token = token;
		this.expireTime = expireTime;
	}



	public TokenDO(String token, Long expireTime, Integer id) {
		super();
		this.token = token;
		this.expireTime = expireTime;
		this.id = id;
	}



	public void setUid(String uid){
		this.uid = uid;
	}
	
	public String getUid(){
		return uid;
	}
	
	public void setToken(String token){
		this.token = token;
	}
	
	public String getToken(){
		return token;
	}
	
	public void setExpireTime(Long expireTime){
		this.expireTime = expireTime;
	}
	
	public Long getExpireTime(){
		return expireTime;
	}
	
	public void setTime(Date time){
		this.time = time;
	}
	
	public Date getTime(){
		return time;
	}
	
	public void setId(Integer id){
		this.id = id;
	}
	
	public Integer getId(){
		return id;
	}
	

	@Override
	public String toString() {
		return JSON.toJSONString(this, SerializerFeature.UseISO8601DateFormat);
	}
}

